package SpringDemo.IOC.com.junjie.framework.beans.factory;

public interface BeanFactory {

    /**
     * 获取Bean实例对象
     * @param name Bean实例ID
     * @return Object Bean实例对象
     */
    Object getBean(String name) throws Exception;

     /**
      * 获取Bean实例对象
      * @param name Bean实例ID
      * @param requiredType Bean实例类型
      * @return T Bean实例对象(T或其子类)
      */
    <T> T getBean(String name, Class<? extends T> requiredType) throws Exception;
}
